﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DcsGauges.Shared.DataStructures
{
    //Maps a DCS Property to the corresponding DCS Clickable Action (extractable from clickabledata.lua)
    public static class DcsCommands
    {
        private static readonly Dictionary<int, int>                 propertyToCommandButton             = new Dictionary<int,int>();

        static DcsCommands()
        {
            //electrical panel
            propertyToCommandButton.Add(DcsProperties.ElectricalPanel.ApuGenerator,                 1);
            propertyToCommandButton.Add(DcsProperties.ElectricalPanel.Inverter,                     2);
            propertyToCommandButton.Add(DcsProperties.ElectricalPanel.EmergencyFlood,               7);
            propertyToCommandButton.Add(DcsProperties.ElectricalPanel.AcPowerGen.Left,              4);
            propertyToCommandButton.Add(DcsProperties.ElectricalPanel.AcPowerGen.Right,             5);
            propertyToCommandButton.Add(DcsProperties.ElectricalPanel.BatteryPower,                 6);


        }

        public static int GetCommandButtonId(DcsProperty property)
        {
            return propertyToCommandButton[property];
        }
    }
}
